package com.example.demo.niuke;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;

/**
 * @Author: liull
 * @Description: 输入几个数 求负数的个数以及非负数的平均数
 * 输入：-13 -4 -7
 * @Date: Created in 15:38 2020/3/24
 * @Modified By:
 */
public class Main23 {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] numbers = line.split(" ");
        int i = 0, j = 0;
        double sum = 0;
        for (String num : numbers) {
            if (Integer.parseInt(num) < 0) {
                // 负数个数+1
                i++;
            } else {
                j++;
                sum += Integer.parseInt(num);
            }
        }
        System.out.println(i);
        if (j == 0) {
            System.out.println(0.0);
        } else {
            DecimalFormat format = new DecimalFormat("0.0");
            System.out.println(format.format(sum / j));
        }
    }

}
